TARGET = calib
CXXFLAGS = -O2 -g -Wall

LIBS = `pkg-config --libs opencv` 
INC =  `pkg-config --cflags opencv`

SRCS = $(shell ls *.cpp)
OBJS = $(SRCS:.cpp=.o)

all: $(TARGET)
$(TARGET): $(OBJS)
	$(CXX) -o $@ $(OBJS) $(LIBS)

.cpp.o:
	$(CXX)  $(INC) -c -o $@ $<


clean:
	rm -f $(OBJS) $(TARGET) *~ ¥#*¥#
